// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ------------------------------------------------------------------
// Modification history:
// feature: listener code decoupling
// feature: discovery support client and server
// feature: evbs support report hostname processname and version
// feature: dds support get remote participant vbs version and rm some print
// ------------------------------------------------------------------

#ifndef INCLUDE_EDDS_RTPS_PARTICIPANT_PARTICIPANTDISCOVERYINFO_H_
#define INCLUDE_EDDS_RTPS_PARTICIPANT_PARTICIPANTDISCOVERYINFO_H_

#include <ertps/ertps_dll.h>
#include <edds/rtps/builtin/data/ParticipantProxyData.h>
#include <history/BaseDiscoveryInfo.h>

namespace evbs {
namespace ertps {
namespace rtps {

/**
 * Class ParticipantDiscoveryInfo with discovery information of the Participant.
 * @ingroup RTPS_MODULE
 */
class ParticipantDiscoveryInfo : public vbs::BaseParticipantDiscoveryInfo {
 public:
    ParticipantDiscoveryInfo(const ParticipantProxyData& data) : status(DISCOVERED_PARTICIPANT), info(data) {}

    virtual ~ParticipantDiscoveryInfo() {}

    //! Status
    DISCOVERY_STATUS status;

    //! Participant discovery info
    const ParticipantProxyData info;
};

}  // namespace rtps
}  // namespace ertps
}  // namespace evbs

#endif  // INCLUDE_EDDS_RTPS_PARTICIPANT_PARTICIPANTDISCOVERYINFO_H_
